<table>
    <tbody>
    <tr>
        <td>采购单号</td>
        <td>{{ $purchase->purchase_no }}</td>
    </tr>
    <tr>
        <td>ETA</td>
        <td>{{ $purchase->commit_date }}</td>
    </tr>
    <tr>
        <td>备注</td>
        <td>{{ $purchase->remarks }}</td>
    </tr>
    </tbody>
</table>
<table>
    <thead>
    <tr>
        <th>SKU</th>
        <th>产品名称</th>
        <th>供应商单价</th>
        <th>下单数量</th>
        <th>到货数量</th>
    </tr>
    </thead>
    <tbody>
    @foreach($purchase->order_detail->sortBy('psku_id') as $item)
        <tr>
            <td>{{ $item->sku->psku_code ?? '' }}</td>
            <td>{{ $item->sku->psku_cn ?? '' }}</td>
            <td>{{ $item->supplier_price }}</td>
            <td>{{ $item->order_num }}</td>
            <td>{{ $item->rgoods_num }}</td>
        </tr>
    @endforeach
    </tbody>
</table>
